#from httplib import HTTPConnection
from apscheduler.scheduler import Scheduler
        
def job_function():
    print "Hello Worlddd"

if __name__ == '__main__':
    import json
    '''sched = Scheduler()
    sched.start()
    sched.add_interval_job(func=job_function, seconds=10)'''
    
    bigdic={}
    dic={}
    
    resultlist=[];
    resultlist.append([55,42])
    resultlist.append([55,42])
    resultlist.append([55,42])
    resultlist.append([55,42])
    
    dic["1::mem_max"]=resultlist
    
    resultlist2=[];
    resultlist2.append([55,42])
    resultlist2.append([55,42])
    resultlist2.append([55,42])
    resultlist2.append([55,42])
    dic["2::mem_max"]=resultlist2
    
    bigdic["1"]=dic
    bigdic["2"]=dic
    
    print json.dumps({"data":bigdic,"settings":{"key":1}}) 
    
    MEM_TYPES2 = {
    '1': {
        'ID': '1',
        'ORDER': '1',
        'DESC': 'Code Cache (Non-heap memory)',
    },
    '2': {
        'ID': '2',
        'ORDER': '2',
        'DESC': 'PS Eden Space (Heap memory)',
    },
    '3': {
        'ID': '2',
        'ORDER': '2',
        'DESC': 'PS Survivor Space (Heap memory)',
    },
    '4': {
        'ID': '4',
        'ORDER': '4',
        'DESC': 'PS Old Gen (Heap memory)',
    },
    '5': {
        'ID': '5',
        'ORDER': '5',
        'DESC': 'PS Perm Gen (Non-heap memory)',
    },
   }
    
    print MEM_TYPES2["1"]["ID"]
    
    map={}
    #map["1"]=map["1"].append([55,42])
    
    for i in xrange(0,len(resultlist2)):
        print i
    
    print resultlist2[3]

'''import time

while True:
    time.sleep(10)
sched.shutdown()'''
        
